<?php 
/**
* 考勤统计
*/
class AttendTotalController{
	
    function log(){
        //根据接收的班级名称，并根据session查得教师的课程，显示该班级的考核表格
        $class = isset($_GET['class'])?$_GET['class']:"2014j1";
        $attend = new AttendModel;
        $row1=$attend->getFields($class);
        $fields = array();
        foreach ($row1 as $v) {
            $fields[] = $v['column_name'] ;
        }
        $roleuser = new RoleUserModel;
        $role_id=$roleuser->getRoleId();
        $tc = new TeacherCourseModel;
        $course = $tc->getCourse($role_id,$class);
        $c = array();
        foreach ($course as $v) {
            $c[] = $v['cno'];
        }
        $c1 = implode(",", $c);
        $row = $attend->studentlist1($class,$c1);
        include(ROOT.'view/admin/tpl/student_total.html');
        
    }


	
}

 ?>